const mongoose =  require('mongoose')
const {dbUri} = require('../config/config.default')
mongoose.connect(dbUri,{
    useNewUrlParser:true,useUnifiedTopology:true
})

const db = mongoose.connect
module.exports = {
    departModel:mongoose.model('departModel',require('./depart')),
    budgetCourseModel:mongoose.model('budgetCourseModel',require('./budgetCourse')),
    yearBudgetModel:mongoose.model('yearBudgetModel',require('./yearBudget')),
    departYearBudgetModel:mongoose.model('departYearBudgetModel',require('./departYearBudget')),
}